<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath }" />
<%-- <link rel="stylesheet"
	href="${ctx }/resources/js/select2/select2.min.css" />
<script type="text/javascript"
	src="${ctx }/resources/js/select2/select2.min.js"></script>
<script type="text/javascript"
	src="${ctx }/resources/js/select2/zh-CN.js"></script> --%>
<script type="text/javascript">
	/* $(function() {
	    webside.form.user.validateUserForm();
	}); */
</script>
<div class="page-header">
	<h1>
		<c:if test="${empty systemEntity}">
		新增系统信息
		</c:if>
		<c:if test="${!empty systemEntity}">
		编辑系统信息
		</c:if>
	</h1>
</div>
<div class="row" style="margin-top:5px;">
	<div class="col-xs-12">
		<form id="metaForm" name="metaForm" class="meta-horizontal" role="form" method="post">
		<c:if test="${!empty systemEntity}">
			<input type="hidden" id="pageNum" name="pageNum" value="${page.pageNum }">
			<input type="hidden" id="pageSize" name="pageSize" value="${page.pageSize }">
			<input type="hidden" id="orderByColumn" name="orderByColumn" value="${page.orderByColumn }">
			<input type="hidden" id="orderByType" name="orderByType" value="${page.orderByType }">
			<input type="hidden" name="sysId" id="sysId" value="${systemEntity.sysId }">
<%-- 			<input type="hidden" name="userInfo.id" value="${systemEntity.id }">
 --%>		</c:if>
		   <div class="form-group">
		      <label class="control-label col-sm-1 no-padding-right" for="sysId">系统ID</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input <c:if test="${!empty systemEntity}">readonly</c:if> class="form-control" name="sysId" id="sysId" type="text" 
		           value="${systemEntity.sysId }" placeholder="以sys后面加思维数字作为标准"/>
		      </div>
		      </div>
		   </div><br>
		   <c:if test="${empty systemEntity}">
			<div class="form-group">
			     <br> <label class="control-label col-sm-1 no-padding-right" for="sysCn">系统名称</label>
			      <div class="col-sm-10">
			      <div class="clearfix">
			         <input class="form-control" name="sysCn" id="sysCn" type="text"
			          />
		      	</div>
		      	</div>
		    </div><br>   
		   </c:if>
		   <div class="form-group">
		      <br><label class="control-label col-sm-1 no-padding-right" for="sysShrtNm">系统简称</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input class="form-control" name="sysShrtNm" id="sysShrtNm" type="text"
		         value="${systemEntity.sysShrtNm }" />
		      </div>
		      </div>
		   </div>  <br> 
		    
		   <div class="form-group">
		      <br><label class="control-label col-sm-1 no-padding-right" for="sysDesc">系统描述</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input class="form-control" name="sysDesc" id="sysDesc" type="text"
		         value="${systemEntity.sysDesc }"/>
		      </div>
		      </div>
		   </div> <br>
		   
		   <div class="form-group">
		     <br> <label class="control-label col-sm-1 no-padding-right" for="sysSrer">系统联系人</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input class="form-control" name="sysSrer" id="sysSrer" type="text"
		         value="${systemEntity.sysSrer }"/>
		      </div>
		      </div>
		   </div> <br>
		   
		    <div class="form-group">
		      <br><label class="control-label col-sm-1 no-padding-right" for="srerTel">联系人电话</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input class="form-control" name="srerTel" id="srerTel" type="tel"
		         value="${systemEntity.srerTel }"/>
		      </div>
		      </div>
		   </div> <br>
		   
		    <div class="form-group">
		     <br> <label class="control-label col-sm-1 no-padding-right" for="srerEmail">联系人邮箱</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input class="form-control" name="srerEmail" id="srerEmail" type="email"
		         value="${systemEntity.srerEmail }"/>
		      </div>
		      </div>
		   </div> <br>
		   
		   <div class="form-group">
		      <br><label class="control-label col-sm-1 no-padding-right" for="srerDept">联系人所属机构</label>
		      <div class="col-sm-10">
		      <div class="clearfix">
		         <input class="form-control" name="srerDept" id="srerDept" type="text"
		         value="${systemEntity.srerDept }"/>
		      </div>
		      </div>
		   </div> <br>
		</form>
		<div class="hr hr-dotted"></div>
	</div>
</div>
<div class="center">
	<button id="btnAdd" type="button" onclick="javascript:$('#metaForm').submit();" class="btn btn-success btn-sm">
	  	<i class="fa fa-user-plus"></i>&nbsp;
	  	<c:if test="${empty systemEntity}">
		添加
		</c:if>
	  	<c:if test="${!empty systemEntity}">
		保存
		</c:if>
	</button>
		<button id="btn" type="button" onclick="webside.common.loadPage('/meta/listUI.html<c:if test="${!empty systemEntity}">?page=${page.pageNum }&rows=${page.pageSize }&sidx=${page.orderByColumn }&sord=${page.orderByType }</c:if>')" class="btn btn-info btn-sm">
		<i class="fa fa-undo"></i>&nbsp;返回
	</button>
</div>